/* header样式 */
.bar-box {
  box-sizing: border-box;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 100%;

  .bar-left,
  .bar-right {
    display: -webkit-flex;
    display: flex;
    align-items: center;
    height: 100%;

    img {
      width: 1.45rem;
      height: 1.45rem;
    }

    a {
      color: #5f646e;
    }
  }

  .searchs {
    flex: 1;
    margin: 0 0.5rem;
  }

  .bar-right img {
    margin-right: 0.5rem;
  }
}

/* banner */
.banner {
  width: 100%;

  /* swiper */
  .myswiper {
    box-sizing: border-box;
    width: 100%;
    height: 11rem;
    padding: 0;

    .swiper-slide {
      img {
        width: 100%;
        height: 100%;
      }
    }
  }

 /*  .banner-footer {
    box-sizing: border-box;
    background: #fff;

    .small-banner {
      display: -webkit-flex;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      color: inherit;

      img {
        width: 2rem;
        height: 2rem;
        margin-bottom: 0.5rem;
      }

      span {
        font-size: 0.7rem;
      }
    }
  } */
}

/* card */
.cardlist {
  box-sizing: border-box;
  background: #fff;

  .card_box {
    box-sizing: border-box;
    box-shadow: none;
    margin: 4%;

    article {
      padding: 0;

      .card_box__content {
        padding-left: 0;
        color: inherit;

        .card_box__content_subtile {
          display: -webkit-flex;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
        }
      }
    }

    .card_box_header {
      a {
        font-size: 0.6rem;
        color: inherit;
      }
    }

    .card_box_content {
      box-sizing: border-box;

      &>img {
        margin: 0.5rem 0;
        width: 100%;
      }

      .card-flex-box {
        .card_flex__inner {
          padding: 0.5rem 0;

          p {
            margin: 0;
          }

          .label-box {
            box-sizing: border-box;
            padding: 0.5rem 0;

            .label {
              box-sizing: border-box;
              margin-right: 0.2rem;
              padding: 0.2rem 0.5rem;
              border-radius: 1.35rem;
              border: 1px solid #e1e1e1;

              &:nth-last-child(1) {
                margin-right: 0;
              }
            }
          }
        }
      }
    }

    .card-footer_content {
      width: 100%;

      .card_flex__inner {
        padding: 0.5rem 0;
      }

      .color-gray.label-box {
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

      }
      .color-black {
        color: #3d4145;
      }
    }
  }

  .flex-postiton {
    flex-direction: row-reverse;

    .item-inner {
      margin-left: 0;
    }
  }
}

/* 名师推荐 */
.teacher {
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  .teacher-box {
    width: 100%;
    margin: 4% 0;
    padding-bottom: 4%;
    .header {
      min-height: 2.2rem;
      display: flex;
      display: -webkit-flex;
      align-items: center;
      padding: 0 4%;
    }
    
    .teacher-card {
      box-sizing: border-box;
      display: flex;
      display: -webkit-flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem;
      border: 1px solid #eee;
      border-radius: 4px;
      position: relative;
      
      img {
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 50%;
      }
      .teacher-title {
        display: flex;
        display: -webkit-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0.5rem 0;
        span {
          text-align: center;
          font-size: 0.75rem;
        }
        .desc {
          overflow:hidden; 
          text-overflow:ellipsis;
          display:-webkit-box; 
          -webkit-box-orient:vertical;
          -webkit-line-clamp:2; 
        }
      }
      a.button {
        width: 90%;
      }

      .closed {
        position: absolute;
        top: 0;
        right: 0.3rem;
        color: #ccc;
      }
    }

    .swiper-wrapper {
      display: flex;
      display: -webkit-flex;
      justify-content: cenrer;
      align-items: center;
    }

    .swiper-slide {
      width: 35%;
      .lastchild {
        height: 100%;
        border: none;
        .more {
          width: 3.5rem;
          height: 3.5rem;
          border-radius: 50%; 
          background: #f6383a;
          display: flex;
          display: -webkit-flex;
          justify-content: center;
          align-items: center;
          img {
            width: 2rem;
            height: 2rem;
            border-radius: 0;
          }
        }
        p {
          color: #f6383a;
        }
      }
    }
  }
}

.top_fixed {
  position: fixed;
  right: 4%;
  bottom: 4rem;
}

.top {
  width: 3rem;
  height: 3rem;
  border: 1px solid #818181;
  border-radius: 50%;
  background-color: rgba(0, 0, 0,0.7);
  display: none;
  // background: #AEAEAE;
  a {
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 0.7rem;
    color: #fff;
  }
}

.goods {
  .card-flex-box {
    position: relative;
    .hot {
      display: none;
      position: absolute;
      top: 0.5rem;
      left: 0;
      height: 1rem;
      padding-left: 1rem;
      text-align: center;
      line-height: 1rem;
      color: #fff;
      background-color: #f00;
      &::after {
        position: absolute;
        content: '';
        left: 100%;
        border: 0.5rem solid transparent;
        border-left-color: #f00;
      }
    }
    .isshow {
      display: block;
    }
  }
}

/* .headline {
}

.activity {
}

.goods, .college, .public {
  display: none;
} */
